import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';

@Component({
    selector: 'ou-org-root-tabset',
    templateUrl: './ou-org-root-tabset.component.html',
    styleUrls: ['./ou-org-root-tabset.component.less']
})
export class OuOrgRootTabsetComponent implements OnInit {

    index = 0;

    @Output() dataChange = new EventEmitter<string>();

    @Output() itemClickEvent = new EventEmitter<any>();

    constructor() {
    }

    ngOnInit() {
    }

    doDataChange() {
        this.dataChange.emit('org');
    }

    itemClick(key) {
        this.itemClickEvent.emit(key);
    }

}
